package com.javafactroy.kunlong.common.dto;


import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import java.io.Serializable;


public class BaseModel implements Serializable {
    static Gson gson = (new GsonBuilder()).setLenient().enableComplexMapKeySerialization().serializeNulls().setPrettyPrinting().disableHtmlEscaping().setDateFormat("yyyy-MM-dd HH:mm:ss").create();
    public String toGsonStr() {
        return gson.toJson(this);
    }
}

